<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>商务合作</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <script src="../../script/vue.min.js"></script>
    <script src="../../script/fastclick.js"></script>
    <style>
    #wrapId {
        height: 100%;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-flex-flow: column;
        flex-flow: column;
    }

    #header {
        background: #fff;
        color: #000;
    }

    #main {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        flex: 1;
    }
    </style>
</head>

<body>
    <div id="wrapId" v-cloak>
        <header id="header" class="aui-bar aui-bar-nav">
            <a class="aui-pull-left">
                <span class="aui-iconfont aui-icon-left" style="color:#000" @click="closeWin">返回</span>
            </a>
            <div class="aui-title">意见反馈</div>
        </header>
        <div id="main" class="flex-con"></div>
    </div>
</body>
<script src="../../script/api.js"></script>
<script>
    apiready = function() {
        open();
        FastClick.attach(document.body);
        var vm = new Vue({
            el: '#wrapId',
            data: {
            },
            methods: {
                closeWin: function() {
                    api.closeWin();
                }
            },
            mounted: function() {

            }
        })
    }
    var header, headerPos, main, mainPos

    function open() {
        header = $api.byId('header');
        //适配iOS 7+，Android 4.4+状态栏
        $api.fixStatusBar(header);
        headerPos = $api.offset(header);
        main = $api.byId('main');
        mainPos = $api.offset(main);
        api.openFrame({
            name: 'question',
            url: 'question.html',
            bounces: true,
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
            }
        });
    }
</script>

</html>
